.container{
    width: 1240px;
    margin: 0 auto;
}
/* 网页的logo及导航栏=--------------------------------------------------- */
.xtx-nav{
    height: 130px;
    background-color: #fff;
}
.xtx-nav .container{
    height: 130px;
    /* background-color: orangered; */
    
}
.xtx-nav .container h1{
    width: 207px;
    height: 70px;
    /* background-color: pink; */
    font-size: 0;
    margin: 30px 40px 0 25px;
}
.xtx-nav .container h1 a{
    display: inline-block;
    width: 207px;
    height: 70px;
    background: url(./images/logo.png);
    background-size: 207px 70px;
}
.xtx-nav .container ul{
    height: 130px;
    line-height: 130px;
}
.xtx-nav .container ul li{
    float: left;
}
.xtx-nav .container ul li a{
    font-size: 16px;
    color: #333;
    margin-right: 48px;
    padding-bottom: 7px;
}
.xtx-nav .container ul li a:hover{
    color: #27ba9b;
    border-bottom: 1px solid #27ba9b;
}
/* 搜索栏 */
.xtx-nav .container .search{
    position: relative;
    width: 172px;
    height: 30px;
    background-color: pink;
    margin-top: 54px;
    margin-left: 34px;
}
.xtx-nav .container .search input{
    width: 172px;
    height: 30px;
    padding-left: 31px;
    border-bottom: 2px solid #e7e7e7;
}
.xtx-nav .container .search::before{
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    /* background-color: red; */
    background: url(./images/sprites.png)-80px -70px;
}
.xtx-nav .container .cart{
    float: left;
    width: 23px;
    height: 23px;
    margin-top: 58px;
    margin-left: 15px;
    /* margin-right: 12px; */
    /* background-color: red; */
    background: url(./images/sprites.png)-120px -70px ;
    position: relative;
}
.xtx-nav .container .cart span{
    position: absolute;
    top: -4px;
    right: -12px;
    width: 20px;
    height: 15px;
    background-color: #e26237;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 13px;
    color: #fff;
    text-align: center;
    line-height: 15px;
}
/* 网页的入口---------------------------------------------------------- */
.xtx-entry{
    height: 500px;
    background-color: #f5f5f5;
}
.xtx-entry .container{
    position: relative;
    height: 500px;
    background: url(./uploads/banner_1.png);
}
.xtx-entry .container .left{
    position: absolute;
    top: 228px;
    left: 260px;
    width: 45px;
    height: 44px;
    background: url(./images/sprites.png) 13px -60px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
}
.xtx-entry .container .right{
    position: absolute;
    top: 228px;
    right: 10px;
    width: 45px;
    height: 44px;
    background: url(./images/sprites.png) -21px -60px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
}
.xtx-entry .container ul{
    width: 251px;
    height: 500px;
    background-color: rgba(0, 0, 0, 0.8);
}
.xtx-entry .container ul li{
    height: 50px;
    line-height: 50px;
}
.xtx-entry .container ul li a{
    display: inline-block;
    position: relative;
    width: 251px;
    height: 50px;
    font-size: 14px;
    padding-left: 36px;
    color: white;
    box-sizing: border-box;
}
.xtx-entry .container ul li a::after{
    content: '';
    position: absolute;
    top: 19px;
    right: 19px;
    width: 6px;
    height: 11px;
    background: url(./images/sprites.png)-80px -110px;
}
.xtx-entry .container ul li a:hover{
    background-color: #27ba9b;
}
.xtx-entry .container ul li a span{
    font-size: 16px;
    margin-right: 12px;
}
/* 网页的主体-------------------------------------------------------------- */
.xtx-main{
    height: 519px;
}
.xtx-main .container{
    height: 519px;
    /* background-color: yellow; */
}
.xtx-main .container .main-font{
    height: 114px;
    /* background-color: skyblue; */
    line-height: 114px;
}
.xtx-main .container .main-font h2{
    height: 114px;
    font-size: 29px;
    color: #333333;
    font-weight: normal;
}
.xtx-main .container .main-font h2 span{
    font-size: 16px;
    color: #999;
    margin-left: 34px;
}
.xtx-main .container .main-font a{
    height: 114px;
    position: relative;
    font-size: 16px;
    color: #999;
    margin-right: 22px;
}
.xtx-main .container .main-font a::after{
    content: '';
    position: absolute;
    top: 51px;
    right: -23px;
    width: 7px;
    height: 13px;
    background: url(./images/sprites.png)0 -109px;
}
.xtx-main .container .main-newgoods{
    height: 405px;
    /* background-color: slategray; */
    
}
.xtx-main .container .main-newgoods .goodspic:hover{
    top: -4px;
    box-shadow: 0px 5px 8px #ccc;
}
.xtx-main .container .main-newgoods .goodspic{
    float: left;
    width: 304px;
    height: 405px;
    /* background-color: skyblue; */
    margin-right: 8px;
    position: relative;
    top: 0;
    transform: 0.5s;
}
.xtx-main .container .main-newgoods .goodspic:nth-child(4){
    margin-right: 0;
}
.xtx-main .container .main-newgoods .goodspic img{
    width: 304px;
    height: 305px;
}
.xtx-main .container .main-newgoods  .goodspic .goods-font{
    padding-top: 22px;
    background-color: #f0f9f4;
    text-align: center;
}
.xtx-main .container .main-newgoods  .goodspic .goods-font p:nth-child(1){
    height: 39px;
    font-size: 20px;
    color: #333333;
}
.xtx-main .container .main-newgoods  .goodspic .goods-font p:nth-child(2){
    font-size: 23px;
    color: #9a2e1f;
}
.xtx-main .container .main-newgoods  .goodspic .goods-font span{
    font-size: 17px;
}
